package oop.ex1.filescript;

import java.io.File;
import java.util.*;

import oop.ex1.actions.Actions;

/**This class is a data structure object.
 * Each block represents a part in the command file from one filter subsection to another.
 * @author miron_6 & dawn16889
 *
 */
public class TreeBlock {

	private  TreeSet<File> tree;
	private  ArrayList<Actions> action;
	private  ArrayList<String> comments;
	
	/**constructs a new TreeBlock.
	 * @param tree - a TreeSet of files.
	 * @param action - a Actions ArrayList.
	 * @param comments - an ArrayList of Strings.
	 */
	public TreeBlock (TreeSet<File> tree, ArrayList<Actions> action, ArrayList<String> comments){
		this.action=action;
		this.tree=tree;
		this.comments = comments;
	}
	
	/**this is a get method for TreeSet.
	 * @return TreeSet of files
	 */
	public TreeSet<File> getTree(){
		return tree;
	}
	
	/**this is a get method for Action ArrayList.
	 * @return Action ArrayList.
	 */
	public ArrayList<Actions> getAction(){
		return action;
	}
	
	/**this is a get method for the String ArrayList.
	 * @return
	 */
	public ArrayList<String> getComments(){
		return comments;
	}
}
